package com.atguigu.eduorder.service.client;

import com.atguigu.commonutils.vo.OrderCourseWebVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author He Wentao
 * @since 2022/10/2 19:27
 */

@FeignClient("service-edu")
public interface EduClient {
    //  根据课程 id 查询课程信息，并且返回对应的 VO 对象
    @GetMapping("/eduservice/coursefront/getCourseById/{id}")
    public OrderCourseWebVo getCourseById(@PathVariable("id") String id);
}
